<?php

use think\Console;

$app = app();

if ($app->request->isCli()) {
    // 动态注册操作指令
    Console::starting(function (Console $console) {
        $console->addCommand(\app\data\command\AliyunIot::class);
        $console->addCommand(\app\data\command\CmdAliyunStomp::class);
        $console->addCommand(\app\data\command\Device::class);
    });
}
